<!-- namespaced routes -->
<!-- The Docs: http://guides.rubyonrails.org/form_helpers.html -->
<!-- section 2.3.1 Dealing with Namespaces -->

  <%= simple_form_for [:admin, @job] do |f| %>
    <%= f.input :title, input_html: {class: "form-control"} %>
    <%= f.input :description, input_html: {class: "form-control"} %>
    <%= f.input :wage_lower_bound, label: "Lower Wage", input_html: {class: "form-control"} %>
    <%= f.input :wage_upper_bound, label: "Upper Wage", input_html: {class: "form-control"} %>
    <%= f.input :contact_email, label: "Email", input_html: {class: "form-control"} %>

    <% if current_user && current_user.admin? %>
    <%= f.input :is_hidden %>
    <% end %>

    <%= f.submit "Submit", class: "btn btn-primary", data: {disable_with: "Submiting..."} %>
  <% end %>
